package com.ruicar.afs.cloud.basic.proceeds.debit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.basic.proceeds.debit.entity.BasicDebitBatch;
import com.ruicar.afs.cloud.basic.proceeds.debit.entity.BasicDebitBatchDetails;

import java.util.Date;

/**
 * @author: Lee
 * @date 2020-05-30 04:34:34 
 * @description 
 */
public interface BasicDebitBatchDetailsService extends IService<BasicDebitBatchDetails> {

    /**
     * 处理扣款成功批次明细
     * @author ZC.GUO
     * @param debitBatch 批次信息
     * @param debitBatchDetails 扣款成功批次明细
     * @param message 成功附加信息
     * @return
     */
    public void debitSuccess(BasicDebitBatch debitBatch,BasicDebitBatchDetails debitBatchDetails,String message,String creditAccount,String creditBankName,String creditOpeningBankName, Date batchDate);

    /**
     * 处理扣款失败批次明细
     * @author ZC.GUO
     * @param debitBatch 批次信息
     * @param debitBatchDetails 扣款失败批次明细
     * @param message 反馈信息
     * @return
     */
    public void debitFailed(BasicDebitBatch debitBatch, BasicDebitBatchDetails debitBatchDetails,String message, Date batchDate);

    /**
     * 处理无明确扣款结果批次明细
     * @author ZC.GUO
     * @param debitBatchDetails 无扣款结果批次明细
     * @return
     */
    public void debitNoResult(BasicDebitBatchDetails debitBatchDetails);
}
